<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;

		}
		.left{
			width: 200px;
			height: 50px;
			background: pink;
			float: left;

		}
		.right{
			width: 600px;
			height: 50px;
			background: skyblue;
			float: right;
		}
		.con{
			width: 1000px;
			height: 500px;
			background: green;
			margin: 0 auto;
          /*		
                
                  clear:
                       -left 不去找前面的左浮动
                       -right 不去找前面的右浮动
                       -both 不去找前面左和右的浮动

                   不想让谁飘上去就给谁加
               缺点： 给元素设置clear之后，margin失效

          	*/
          	clear: both;
          	margin-top:100px ;
		}


	</style>
</head>
<body>
      <div class="nav">
      	   <div class="left"></div>
      	   <div class="right"></div>
      </div>
      <div class="con">
      	
      </div>
</body>
</html>